﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
Inherits="System.Web.Mvc.ViewPage<CI.Caja.BE.BE_Programacion>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Programación de Turno
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Programacion de Turno</h2>
    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm("Edit", "ProgramacionTurno", FormMethod.Post))
       {%>  
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Personal</legend>
            <div class="editor-label">
                Codigo
            </div>
            <div class="editor-field">
               <%: Html.TextBoxFor(model => model.IdProgramacion, new { disabled = "disabled" })%>
            </div>
            <div class="editor-label">
                Turno
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("CodigoTurno", (IEnumerable<SelectListItem>)TempData["turnos"])%>
            </div>
            <div class="editor-label">
                Personal
            </div>
            <div class="editor-field">
                 <%: Html.DropDownList("CodigoPersonal", (IEnumerable<SelectListItem>)TempData["personales"])%>
            </div>
            <div class="editor-label">
                Dia
            </div>
            <div class="editor-field">
               <%: Html.DropDownList("CodigoDia", (IEnumerable<SelectListItem>)TempData["dias"])%>
            </div>
            <div class="editor-label">
                Punto Venta
            </div>
            <div class="editor-field">
                 <%: Html.DropDownList("CodigoPtoVta", (IEnumerable<SelectListItem>)TempData["ptoventas"])%>
            </div>
            <div class="editor-label">
                Fecha Inicio
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FecInicio) %>
                <%: Html.ValidationMessageFor(model => model.FecInicio)%>
           
            </div>
            <div class="editor-label">
                Fecha Fin
            </div>
            <div class="editor-field">
                 <%: Html.TextBoxFor(model => model.FecFin)%>
                 <%: Html.ValidationMessageFor(model => model.FecFin)%>
            </div>
            <p>
                <input type="submit" value="Modificar" /> <%: Html.ActionLink("Cancelar", "Index")%> 
        

            </p>
        </fieldset>

    <% } %>
</asp:Content>
